package com.mldong.modules.cms.entity;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 内容
 * </p>
 *
 * @author mldong
 * @since 2022-10-23
 */
@Getter
@Setter
@TableName("cms_content")
@ApiModel(value = "Content对象", description = "内容")
public class Content implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("所属栏目")
    private Long categoryId;

    @ApiModelProperty("标题")
    private String title;

    @ApiModelProperty("作者")
    private String author;

    @ApiModelProperty("来源")
    private String source;

    @ApiModelProperty("seo关键字")
    private String seoKeywords;

    @ApiModelProperty("seo描述")
    private String seoDesc;

    @ApiModelProperty("摘要")
    private String description;

    @ApiModelProperty("排序")
    private Long sort;

    @ApiModelProperty("单图")
    private String image;

    @ApiModelProperty("多图")
    private String images;

    @ApiModelProperty("是否推荐")
    private Boolean isRecommend;

    @ApiModelProperty("是否发布")
    private Boolean isPublished;

    @ApiModelProperty("发布时间")
    private Date publishTime;

    @ApiModelProperty("内容")
    private String content;

    @ApiModelProperty("业务状态")
    private Integer status;

    @ApiModelProperty("创建人")
    @TableField(fill = FieldFill.INSERT)
    private Long createUser;

    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty("修改人")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long updateUser;

    @ApiModelProperty("修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ApiModelProperty("是否删除")
    @TableField(fill = FieldFill.INSERT)
    @TableLogic
    private Boolean isDeleted;


}
